package com.h3c.ptability.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: SdOperLogDTO
 *
 * @Author: l22886
 * @Date: 2022-01-19
 * Description: sd_oper_log dto实体
 * Version: 1.0
 */
@ApiModel(value="SdOperLog对象", description="")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SdOperLogDTO {


    @ApiModelProperty(value = "操作记录ID")
    private String operId;

    @ApiModelProperty(value = "系统ID")
    private String appId;

    @ApiModelProperty(value = "用户工号")
    private String operUserId;

    @ApiModelProperty(value = "用户姓名")
    private String operUserName;

    @ApiModelProperty(value = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date requestTime;

    @ApiModelProperty(value = "访问IP")
    private String clientIp;

    @ApiModelProperty(value = "请求地址")
    private String requestUrl;

    @ApiModelProperty(value = "请求参数")
    private String requestParam;

    @ApiModelProperty(value = "请求用时")
    private Integer costMs;

    @ApiModelProperty(value = "处理结果：1 成功；2 失败；")
    private Integer requestResult;

    /**
     * 排序字段 + 升序， -降序
     * 比如 +updateTime 根据 修改时间升序排序，-updateTime 根据 修改时间降序排序
     */
    private String orderBy;

}
